package cn.java63.biz2;

import cn.java63.biz.User;
import org.springframework.stereotype.Service;

@Service
public class UserServiceAno {
    public boolean add(User u){
        System.out.println("新用户"+u+"加入了数据库");
        return u.getId()%2==0;
    }
    public boolean update(User u){
        System.out.println("老用户"+u+"被修改了");
        return u.getId()%2==0;
    }
    public boolean del(long id){
        System.out.println("用户"+id+" 被删除了");
        return true;
    }
}
